﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GsOrganization.TcpPacket
{
    public class MessageCommandId
    {
        #region [登录信息等 0x00/0x80]

        /// <summary>
        /// 设备登录报文
        /// </summary>
        public const ushort DeviceLoginReq = 0x0001;
        public const ushort DeviceLoginRsp = 0x8001;


        /// <summary>
        /// 用户登录报文
        /// </summary>
        public const ushort UserLoginReq = 0x0002;
        public const ushort UserLoginRsp = 0x8002;

        /// <summary>
        /// 用户退出登录
        /// </summary>
        public const ushort UserLogoutReq = 0x0003;
        public const ushort UserLogoutRsp = 0x8003;
        /// <summary>
        /// 心跳检测
        /// </summary>
        public const ushort HeartbeatReq = 0x0004;
        public const ushort HeartbeatRsp = 0x8004;

        #endregion

        #region [客户端请求控制 0x01/0x81]

        /// <summary>
        /// 客户端请求获取配置信息
        /// </summary>
        public const ushort GetServerConfigReq = 0x0101;
        public const ushort GetServerConfigRsp = 0x8101;

        /// <summary>
        /// 客户端请求上传配置信息
        /// </summary>
        public const ushort SendServerConfigReq = 0x0102;
        public const ushort SendServerConfigRsp = 0x8102;
        /// <summary>
        /// 客户端请求获取主程序版本信息
        /// </summary>
        public const ushort GetMainVersionInfoReq = 0x0103;
        public const ushort GetMainVersionInfoRsp = 0x8103;
        /// <summary>
        /// 客户端请求获取升级程序版本信息
        /// </summary>
        public const ushort GetUpVersionInfoReq = 0x0104;
        public const ushort GetUpVersionInfoRsp = 0x8104;

        /// <summary>
        /// 客户端请求发送日志信息
        /// </summary>
        public const ushort SendLogInfoReq = 0x0105;
        public const ushort SendLogInfoRsp = 0x8105;

        /// <summary>
        /// 客户端获取临时Session
        /// </summary>
        public const ushort GetServerSessionReq = 0x0106;
        public const ushort GetServerSessionRsp = 0x8106;

        /// <summary>
        /// 客户端上报故障信息
        /// </summary>
        public const ushort SendAlarmReq = 0x0107;
        public const ushort SendAlarmRsp = 0x8107;

        

        #endregion

        #region [服务器端下发控制指令 0x02/0x82]

        /// <summary>
        /// 服务器端要求下发配置
        /// </summary>
        public const ushort ServerSendConfigReq = 0x0201;
        public const ushort ServerSendConfigRsp = 0x8201;

    
        /// <summary>
        /// 服务器端要求重启打印机
        /// </summary>
        public const ushort ServerSendResetPrinterReq = 0x0202;
        public const ushort ServerSendResetPrinterRsp = 0x8202;

        /// <summary>
        /// 服务器端要求下发卷标
        /// </summary>
        public const ushort ServerSendPaperLabelReq = 0x0203;
        public const ushort ServerSendPaperLabelRsp = 0x8203;



        /// <summary>
        /// 服务器端要求下发追溯卡号
        /// </summary>
        public const ushort ServerSendCottonModelCodeReq = 0x0204;
        public const ushort ServerSendCottonModelCodeRsp = 0x8204;


        /// <summary>
        /// 服务器要求删除某条数据
        /// </summary>
        public const ushort ServerSendDelCollectDataReq = 0x0205;
        public const ushort ServerSendDelCollectDataRsp = 0x8205;


        /// <summary>
        /// 服务器要求禁用/启用打码机
        /// </summary>
        public const ushort ServerSendSetPrinterEnableReq = 0x0206;
        public const ushort ServerSendSetPrinterEnableRsp = 0x8206;

        /// <summary>
        /// 服务器端要求获取打码机ID
        /// </summary>
        public const ushort ServerSendGetPrinterIdReq = 0x0207;
        public const ushort ServerSendGetPrinterIdRsp = 0x8207;

        /// <summary>
        /// 服务器下发数据归档
        /// </summary>
        public const ushort ServerSendDataArchiveReq = 0x0208;
        public const ushort ServerSendDataArchiveRsp = 0x8208;
     

        /// <summary>
        /// 服务器端要求设备取消激活
        /// </summary>
        public const ushort ServerSendInactiveReq = 0x0299;
        public const ushort ServerSendInactiveRsp = 0x8299;

        
        public const ushort ServerSendFromReq = 0x0209;
        public const ushort ServerSendFromRsp = 0x8209;

        public const ushort ServerSendNumReq = 0x0210;
        public const ushort ServerSendNumRsp = 0x8210;


        #endregion

        #region [数据业务相关 0x03/0x83]
        public const ushort SendHelloWorldReq = 0x0301;
        public const ushort SendHelloWorldRsp = 0x8301;
        #endregion
    }
}
